/*
 * $Id$
 */
package corejs.expr;

import corejs.rt.ActivationRecord;
import corejs.util.XmlPrinter;

/**
 *
 * @author myang
 */
public abstract class BinaryOperatorExpr implements Expression {

   protected Expression _left;
   protected Expression _right;

   public BinaryOperatorExpr(final Expression left, final Expression right) {
      _left = left;
      _right = right;
   }

   public Expression left() {
      return _left;
   }

   public Expression right() {
      return _right;
   }

   @Override
   public void print(XmlPrinter printer) {
      throw new UnsupportedOperationException("Not supported yet.");
   }

   @Override
   public Object eval(ActivationRecord scope) {
      throw new UnsupportedOperationException("Not supported yet.");
   }


}
